<?php
/**
 * 登录token管理
 * Created by gii.
 * User: {$userName}
 * Date: 2023/02/23
 * Time: 16:20
 */

namespace App\Models\Entitys\System;

trait UserTokenEntity
{
    // 获取用户ID
    public function getUserId() {
        return $this->getData('user_id');
    }

    // 获取用户名
    public function getUsername() {
        return $this->getData('username');
    }

    // 获取token
    public function getToken() {
        return $this->getData('token');
    }

    // 获取过期时间
    public function getExpiretime() {
        return $this->getData('expiretime');
    }


}